import Layout from '@/layout'

const attendanceRouter = {
  path: '/attendance',
  component: Layout,
  redirect: '/attendance/list',
  name: 'attendance',
  meta: {
    title: '考勤管理',
    icon: 'el-icon-notebook-2'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/attendance/list'),
      name: 'AttendanceList',
      meta: {
        title: '考勤统计',
        icon: 'list'
      }
    },
    {
      path: 'statistics',
      component: () => import('@/views/attendance/statistics'),
      name: 'AttendanceStatistics',
      meta: {
        title: '考勤分析',
        icon: 'chart'
      }
    }
  ]
}

export default attendanceRouter
